import request from '@/utils/request'

export function login(inof) {
    return request({
        url: '/user/h5Login',
        method: 'post',
        data: inof
    })
}

export function signIo(from) {
    return request({
        url: '/user/register',
        method: 'post',
        data: from
    })
}

//修改密码
export function modifyPsw(pwd){
    return request({
        url:'/user/modifyPsw',
        method:'post',
        data:pwd
    })
    
}

//修改个人信息
export function edit(form){
    return request({
        url:'/student/edit',
        method:'post',
        data:form
    })
}

export function quit(token) {
    return request({
        url: '/user/logout',
        method: 'get',
        params:{
            token
        }
    })
}


export function classList(){
    return request({
        url:'/class/list',
        method:'get'
    })
}